package my.soft.aiteacher.teacher.pojo;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName(value = "tb_keypoint_items", autoResultMap = true)
public class KeypointItemDO {
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    @TableField("keypoint_id")
    private Long keypointId;
    
    private String title;
    private String content;
    
    @TableField("topic_type")
    private String topicType;
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject options;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> correctAnswer;
    @TableField("question_content")
    private String questionContent;
    
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("keypoint_time")
    private String keypointTime;

    private Integer different;
    private String chapterSummary;

    private Integer createMethod;

}